package com.hospital.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author fxy
 * @date 2022/8/30
 */
@Data
public class SeeDoctor {
    private Integer id;
    private Integer uid;
    private Integer empid;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")//返回
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ctime;
    @JsonFormat(pattern = "yyyy-MM-dd")//返回
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    //预约时间
    private Date registertime;
    //症状
    private String symptom;
    public SeeDoctor(){

    }

    public SeeDoctor(Integer uid, Integer empid, Date registertime, String symptom,Date ctime) {
        this.uid = uid;
        this.empid = empid;
        this.registertime = registertime;
        this.symptom = symptom;
        this.ctime = ctime;
    }
}
